package com.example.cofeed.activity;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.example.cofeed.R;
import com.example.cofeed.adapter.PhotoAdapter;
import com.example.cofeed.base.BaseActivity;
import com.umeng.analytics.MobclickAgent;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SupplyDetailsActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView mTvTitle;
    @BindView(R.id.tv_addr)
    TextView mTvAddr;
    @BindView(R.id.tv_num)
    TextView mTvNum;
    @BindView(R.id.tv_date)
    TextView mTvDate;
    @BindView(R.id.tv_chandi)
    TextView mTvChandi;
    @BindView(R.id.tv_pinming)
    TextView mTvPinming;
    @BindView(R.id.tv_guige)
    TextView mTvGuige;
    @BindView(R.id.tv_shuliang)
    TextView mTvShuliang;
    @BindView(R.id.tv_desc)
    TextView mTvDesc;
    @BindView(R.id.tv_name)
    TextView mTvName;
    @BindView(R.id.tv_phone)
    TextView mTvPhone;
    @BindView(R.id.rv_list)
    RecyclerView mRvList;
    private PhotoAdapter mPhotoAdapter;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_supply_details;
    }

    @Override
    protected void init(Bundle savedInstanceState, View container) {
        setMainTitle("供求详情");

        mPhotoAdapter = new PhotoAdapter();
        mRvList.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
        mRvList.setAdapter(mPhotoAdapter);

        mPhotoAdapter.addData("");
        mPhotoAdapter.addData("");
        mPhotoAdapter.addData("");
        mPhotoAdapter.addData("");
        mPhotoAdapter.addData("");
        mPhotoAdapter.addData("");

    }

    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onResume(this);
    }

    @Override
    public void onPause() {
        super.onPause();
        MobclickAgent.onPause(this);
    }

}
